<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
    </head>
    <body>
        <?php
        //echo 'HM';
        //require ('HTMLManager.class.php');
        //echo 'A';
        //require ('Article.class.php');
        //echo 'AM';
        //require_once ('ArticleManager.class.php');

        require ('Cinema.class.php');
        require ('CinemaManager.class.php');
        //include_once ('Event.class.php');
        //echo $_SERVER['SERVER_NAME'];
        $cm = new CinemaManager();

        //echo $_GET['id'];
        //var_dump($cm->get_last_n_articles());
        //HTMLManager::get_community_week();

        var_dump($cm->get_cinema_projections());

        //var_dump($cm->get_article_by_id(126)->escape_string($string))
        //$em = new ArticleManager();
        //var_dump($em->get_categories());
        //echo $hm->get_num_pages('category', 'spiritualita');

        /*
          $p = array();
          array_push($p, array('date' => '2012-08-12',
          'time' => array("12:30:00","14:30:00","16:30:00")
          ));
          array_push($p, array('date' => '2012-08-16',
          'time' => array("12:30:00","14:30:00","16:30:00")
          ));
          echo json_encode($p);
          var_dump(json_decode('[{"date":"2012-08-12","time":["12:30:00","14:30:00","16:30:00"]},{"date":"2012-08-16","time":["12:30:00","14:30:00","16:30:00"]}]', $assoc=true)); */
        ?>
    </body>

</html>
